package team.southcat.wsyygh.user.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import team.southcat.wsyygh.common.result.Result;

import java.util.List;

@FeignClient("service-user")
@Component
public interface UserFeignClient {

    @GetMapping("/user/getById/{id}")
    public Result getById(@PathVariable("id") long id);

    @GetMapping("/user/getUserByName")
    public Result getUserByName(@RequestBody List<String> userName);
}
